//
//  WBAnimationBtn.swift
//  XLWibo-Swift
//
//  Created by 王林 on 2016/11/21.
//  Copyright © 2016年 木木. All rights reserved.
//

import UIKit


class WBAnimationBtn: UIButton {

    override init(frame: CGRect) {
        super.init(frame: frame)
        self.titleLabel?.textAlignment = .center
        self.titleLabel?.font = UIFont.systemFont(ofSize: 14)
    }
    
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }

    override func imageRect(forContentRect contentRect: CGRect) -> CGRect {
        return CGRect(x: 0, y: 0, width: btnW, height: btnW)
    }
    
    override func titleRect(forContentRect contentRect: CGRect) -> CGRect {
        return CGRect(x: 0, y: btnW, width: btnW, height: 30)
    }
    
    
}
